# Project Needs a name ofcourse
project(plasma-emailnotify)
 
# Find the required Libaries
find_package(KDE4 REQUIRED)
include(KDE4Defaults)
find_package(Plasma REQUIRED)
 
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(
   ${CMAKE_SOURCE_DIR}
   ${CMAKE_BINARY_DIR}
   ${KDE4_INCLUDES}
   )
 
# We add our source code here
set(emailnotify_SRCS plasma-emailnotify.cpp ConfigDialog.cpp EmailChecker.cpp)
# Now make sure all files get to the right place
kde4_add_plugin(plasma_applet_emailnotify ${emailnotify_SRCS})

target_link_libraries(plasma_applet_emailnotify 
                      ${PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_PHONON_LIBS})
 
install(TARGETS plasma_applet_emailnotify
        DESTINATION ${PLUGIN_INSTALL_DIR})
 
install(FILES plasma-applet-emailnotify.desktop
        DESTINATION ${SERVICES_INSTALL_DIR})

KDE4_INSTALL_ICONS(${ICON_INSTALL_DIR} )
